﻿@model List<StateProvinceModel>
@using Telerik.Web.Mvc.UI;
@using Nop.Admin.Models.Directory;
@using System.Globalization;
@{
    ViewBag.Title = T("Admin.Configuration.Holidays").Text;
}

@using (Html.BeginForm())
{
    <div class="section-header">
        <div class="title">
            <img src="@Url.Content("~/subsites/Administration/Content/images/ico-content.png")" alt="" />
            @T("Admin.Configuration.Holidays") @Html.ActionLink("(" + T("Admin.Common.List") + ")", "List")
        </div>
        <div class="options">
            <input type="submit" name="save" class="t-button" value="@T("Admin.Common.Save")" />
            <a href="/Admin/Holiday/List" name="Cancel" class="t-button">@T("Admin.Common.Cancel")</a>
        </div>
    </div>

    <legend>
        @T("Admin.Configuration.Holidays.StateProvince") (@ViewBag.HolidayName)
    </legend>
    <br/>
    <table class="adminContent">
        <tr>
            <td class="adminData">
                @for (int i = 0; i < Model.Count; i++)
                {
                    <div>
                        @Html.HiddenFor(x => x[i].Id)
                        @Html.CheckBoxFor(x => x[i].Selected)
                        @Html.LabelFor(x => x[i].Selected, String.Format("{0}({1})", Model[i].Name, Model[i].Abbreviation))
                    </div>
                }
            </td>
        </tr>
    </table>
}
